package com.easy.cart.service.feign;

import com.easy.bean.Users;
import com.easy.common.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "easy-user")
@Service
public interface EasyFeignService {
    @RequestMapping(path = "user/feign/loginuser/{token}",method = RequestMethod.GET)
    public Users loginUser(@PathVariable("token") String token);
}
